package com.xiaojiang.entity;

import com.baomidou.mybatisplus.annotation.*;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 功能：
 * 作者：小江
 * 日期：2024年10月21日
 */
@Data
@TableName("person_access_records")
public class PersonAccessRecords {
    @TableId(type = IdType.AUTO)
    private Integer personRecordId;
    @NotEmpty
    private String householderName;
    @TableField(value = "access_time",fill = FieldFill.INSERT)
    private LocalDateTime accessTime;
    @TableField(value = "access_type",insertStrategy = FieldStrategy.DEFAULT)
    private AccessType accessType = AccessType.IN;
    @NotNull
    private  Integer householderId;

}
